#include "mypushbutton.h"
#include <QPainter>

MyPushButton::MyPushButton(QWidget *parent) : QPushButton(parent)
{

}

void MyPushButton::moveDown()
{

}

void MyPushButton::moveUp()
{

}

void MyPushButton::paintEvent(QPaintEvent *)
{
    // 绘制背景图片
    QPainter painter(this);
    QPixmap pix(":/res/MenuSceneStartButton.png");
    painter.drawPixmap(0, 0, this->width(), this->height(), pix);
}
